<%@ page language="java" contentType="text/html; charset=UTF-8"
		 pageEncoding="UTF-8"%>
<%@ include file="/common/taglibs.jsp"%>
<div class="t_bar">项目负责人</div>
<table class="t_css table01" width="100%" border="0" cellpadding="0" id="basicInfo"
	   cellspacing="1">
	<col style="width:18%"/>
	<col style="width:16%"/>
	<col style="width:16%"/>
	<col style="width:18%"/>
	<col style="width:16%"/>
	<col style="width:16%"/>
	<tr class="li_2">
		<td   align="right" >姓名：</td>
		<td  colspan="1">
			<span name="proposal/fzr_psnname" ><x:out select="$xmlData/data/zh_persons/zh_person[@submit_psn='1']/basic_info/zh_name" /></span>
		</td>
		<td align="right">性别：</td>
		<td colspan="1">
			<c:set var="gender_value"><x:out select="$xmlData/data/zh_persons/zh_person[@submit_psn='1']/basic_info/gender_value" /></c:set>
			<span name="proposal/fzr_gender_name" ><c:if test="${gender_value=='M'}">男</c:if><c:if test="${gender_value=='F'}">女</c:if></span>
			<input type="hidden" name="proposal/fzr_gender_value" value="${gender_value}"/>
		</td>
		<td   align="right" >出生年月：</td>
		<td  colspan="2" align="center">
			<span name="proposal/fzr_birthday" ><x:out select="$xmlData/data/zh_persons/zh_person[@submit_psn='1']/basic_info/birthday" /></span>
		</td>
	</tr>
	<tr class="li_1">
		<td   align="right" >学历：</td>
		<td  colspan="1">
			<span name="proposal/fzr_degree_name" ><x:out select="$xmlData/data/zh_persons/zh_person[@submit_psn='1']/basic_info/educate_name" /></span>
		</td>
		<td  align="right" nowrap>职务：</td>
		<td colspan="1">
			<span name="proposal/fzr_position" ><x:out select="$xmlData/data/zh_persons/zh_person[@submit_psn='1']/basic_info/position" /></span>
		</td>
		<td  align="right" nowrap>职称：</td>
		<td colspan="1">
			<span name="proposal/fzr_prof_title_name" ><x:out select="$xmlData/data/zh_persons/zh_person[@submit_psn='1']/basic_info/prof_title_name" /></span>
		</td>
	</tr>
	<tr class="li_2">
		<td  align="right" >从事专业：</td>
		<td colspan="1">
			<span name="proposal/fzr_major_work" ><x:out select="$xmlData/data/zh_persons/zh_person[@submit_psn='1']/contact/major_work" /></span>
		</td>
		<td  align="right" >内设学院或机构<br/>（没有可填无）：</td>
		<td colspan="1">
			<span name="proposal/built_institute" id="built_instituteview"><x:out select="$xmlData/data/proposal/built_institute" /></span>
		</td>
		<td align="right">手机：</td>
		<td nowrap  colspan="2">
			<span name="proposal/fzr_mobile" ><x:out select="$xmlData/data/zh_persons/zh_person[@submit_psn='1']/contact/mobile" /></span>
		</td>
	</tr>
</table>
<table class="t_css table01" width="100%"   border="0" cellpadding="0" id="tblresume" cellspacing="1">
	<col style="width:18%"/>
	<col style="width:16%"/>
	<col style="width:16%"/>
	<col style="width:18%"/>
	<col style="width:16%"/>
	<col style="width:16%"/>
	<tr>
		<td class="t_bar" style="padding: 0px;" colspan="6"><span class="color_red">&nbsp;*</span>项目负责人简介，重点填写研发经历、主要成果、技术述评和管理能力等（限300字） </td>
	</tr>
	<tr>
		<td colspan="6">
			<textarea id="project_fzr" name="proposal/project_fzr" style="width:98%" class="input_textarea required maxlength:300" label="项目负责人简介，重点填写研发经历、主要成果、技术述评和管理能力等 "  rows=15 cols=60 ><x:out select="$xmlData/data/proposal/project_fzr" /></textarea>
			<input type="hidden" name="proposal/project_fzr_hidden" id="project/project_fzr_hidden"  value="<x:out select="$xmlData/data/proposal/project_fzr_hidden" />"/>
		</td>

	</tr>
</table>
<br/><div class="t_bar">
	<span class="color_red">*</span>项目组主要参与人员
	<security:authorize ifNotGranted="A_DAILU_PROPOSAL">
		<!-- <span style="font-size: 12px;font-weight: normal;">
		（如果您需要修改申请人信息， 请保存申请书后点击菜单“管理”>“个人信息维护”完成修改）
		</span> -->
	</security:authorize>
</div>
<table  id="zh_persons" border="0" style="word-break: break-all;" cellspacing="0" cellpadding="0" class="table01" >
	<thead>
	<tr>
		<th width="5%" >选择</th>
		<th nowrap>序号</th>
		<th width="10%">姓名</th>
		<th width="9%">出生年月</th>
		<th width="5%">性别</th>
		<th width="11%">从事专业</th>
		<th width="10%">职称</th>
		<th width="10%">学历</th>
		<th width="15%">所在单位</th>
		<th width="15%">内设学院或机构</th>
		<th width="15%" nowrap="nowrap">项目分工</th>
	</tr>
	</thead>
	<tbody id="tab">
	<tr style="display: none">
		<td  align="center"  width="50px" >
			<input type="radio" name="sel_zh_persons" onclick="setSubmitPsn()" />
			<input type="hidden" name="zh_persons|zh_person[0]|basic_info|ethnicity_value" />
			<input type="hidden" name="zh_persons|zh_person[0]|basic_info|ethnicity_name" />
			<input type="hidden" name="zh_persons|zh_person[0]|basic_info|subject_code" />
			<input type="hidden" name="zh_persons|zh_person[0]|basic_info|subject_name" />
			<input type="hidden" name="zh_persons|zh_person[0]|basic_info|discipline_code" />
			<input type="hidden" name="zh_persons|zh_person[0]|basic_info|discipline_name" />
			<input type="hidden" name="zh_persons|zh_person[0]|basic_info|region_value" />
			<input type="hidden" name="zh_persons|zh_person[0]|basic_info|region_name" />
			<input type="hidden" name="zh_persons|zh_person[0]|basic_info|card_type_value" />
			<input type="hidden" name="zh_persons|zh_person[0]|basic_info|academician_value" />
			<input type="hidden" name="zh_persons|zh_person[0]|basic_info|academician_name" />
			<input type="hidden" name="zh_persons|zh_person[0]|basic_info|org_code" />
			<input type="hidden" name="zh_persons|zh_person[0]|contact|tel_work" />
			<input type="hidden" name="zh_persons|zh_person[0]|contact|fax" />
			<input type="hidden" name="zh_persons|zh_person[0]|basic_info|post_code" />
			<input type="hidden" name="zh_persons|zh_person[0]|basic_info|position" />
			<input type="hidden" name="zh_persons|zh_person[0]|basic_info|degree_value" />
			<input type="hidden" name="zh_persons|zh_person[0]|basic_info|degree_name" />
			<input type="hidden" name="zh_persons|zh_person[0]|basic_info|degree_country_value" />
			<input type="hidden" name="zh_persons|zh_person[0]|basic_info|degree_country_name" />
			<input type="hidden" name="zh_persons|zh_person[0]|basic_info|degree_college" />
			<input type="hidden" name="zh_persons|zh_person[0]|basic_info|degree_year" />
			<input type="hidden" name="zh_persons|zh_person[0]|basic_info|address" />
			<input type="hidden" name="zh_persons|zh_person[0]|basic_info|prof_title" />
			<input type="hidden" name="zh_persons|zh_person[0]|basic_info|prof_title_value" />
			<input type="hidden" name="zh_persons|zh_person[0]|basic_info|post_doctor_value"/>
			<input type="hidden" name="zh_persons|zh_person[0]|basic_info|post_doctor_name"/>
			<input type="hidden" name="zh_persons|zh_person[0]|basic_info|birth_date"/>
			<input type="hidden" name="zh_persons|zh_person[0]|basic_info|gender_value"/>
			<input type="hidden" name="zh_persons|zh_person[0]|basic_info|age"/>
			<input type="hidden" name="zh_persons|zh_person[0]|basic_info|educate_value"/>
			<input type="hidden" name="zh_persons|zh_person[0]|iscomember" value="0"/>
			<input type="hidden" name="zh_persons|zh_person[0]|researches" label="xml"/>
			<input type="hidden" name="zh_persons|zh_person[0]|basic_info|card_type_name" />
			<input type="hidden" name="zh_persons|zh_person[0]|basic_info|card_code"/>
			<input type="hidden" name="zh_persons|zh_person[0]|contact|email"/>
			<input type="hidden" name="zh_persons|zh_person[0]|contact|mobile"/>
		</td>
		<td align="center">
			<span name="zh_persons|zh_person[0]@seq_no">[index]</span>
		</td>
		<td >
			<span name="zh_persons|zh_person[0]|basic_info|zh_name"></span>
		</td>
		<td align="center" style="word-break: break-all;">
			<span name="zh_persons|zh_person[0]|basic_info|birthday"></span>
		</td>
		<td align="center" style="word-break: break-all;">
			<span name="zh_persons|zh_person[0]|basic_info|gender_name"></span>
		</td>
		<td  style="word-break: break-all;">
			<span name="zh_persons|zh_person[0]|contact|major_work"></span>
		</td>
		<td align="center" style="word-break: break-all;">
			<!-- <span name="zh_persons|zh_person[0]|basic_info|position"></span>/ --><span name="zh_persons|zh_person[0]|basic_info|prof_title_name"></span>
		</td>
		<td align="center" style="word-break: break-all;">
			<span name="zh_persons|zh_person[0]|basic_info|educate_name"></span>
		</td>
		<td >
			<span  name="zh_persons|zh_person[0]|basic_info|org_name" ></span>
		</td>
		<td align="left" style="word-break: break-all;">
			<span id="built_institute_[0]" name="zh_persons|zh_person[0]|contact|built_institute"></span>
		</td>
		<td style="word-break: break-all;">
			<span name="zh_persons|zh_person[0]|basic_info|work" ></span>
		</td>
	</tr>
	<c:set value="0" var="index" scope="page" />
	<x:forEach select="$xmlData/data/zh_persons/zh_person" var="zh_person">
		<c:choose>
			<c:when test="${index<10}">
				<c:set value="0" var="flag" scope="page" />
			</c:when>
			<c:otherwise>
				<c:set value="" var="flag" scope="page" />
			</c:otherwise>
		</c:choose>
		<tr>
			<td  align="center"  width="50px" >
				<input type="radio" name="sel_zh_persons" onclick="setSubmitPsn()" />
				<c:if test="${index==0}">
					<input type="hidden" id="submit_psn" name="zh_persons/zh_person[${flag}${index}]@submit_psn" value="1" />
					<input type="hidden" name="zh_persons/zh_person[${flag}${index}]/basic_info/psn_code" value="<x:out select="$zh_person/basic_info/psn_code" />"/>
				</c:if>
				<input type="hidden" name="zh_persons/zh_person[${flag}${index}]/basic_info/en_name" value="<x:out select="$zh_person/basic_info/en_name" />"/>
				<input type="hidden" name="zh_persons/zh_person[${flag}${index}]/basic_info/ethnicity_value" value="<x:out select="$zh_person/basic_info/ethnicity_value" />"/>
				<input type="hidden" name="zh_persons/zh_person[${flag}${index}]/basic_info/ethnicity_name" value="<x:out select="$zh_person/basic_info/ethnicity_name" />"/>
				<input type="hidden" name="zh_persons/zh_person[${flag}${index}]/basic_info/subject_code" value="<x:out select="$zh_person/basic_info/subject_code" />"/>
				<input type="hidden" name="zh_persons/zh_person[${flag}${index}]/basic_info/subject_name" value="<x:out select="$zh_person/basic_info/subject_name" />"/>
				<input type="hidden" name="zh_persons/zh_person[${flag}${index}]/basic_info/discipline_code" value="<x:out select="$zh_person/basic_info/discipline_code" />"/>
				<input type="hidden" name="zh_persons/zh_person[${flag}${index}]/basic_info/discipline_name" value="<x:out select="$zh_person/basic_info/discipline_name" />"/>
				<input type="hidden" name="zh_persons/zh_person[${flag}${index}]/basic_info/region_value" value="<x:out select="$zh_person/basic_info/region_value" />" />
				<input type="hidden" name="zh_persons/zh_person[${flag}${index}]/basic_info/region_name" value="<x:out select="$zh_person/basic_info/region_name" />" />
				<input type="hidden" name="zh_persons/zh_person[${flag}${index}]/basic_info/gender_value" value="<x:out select="$zh_person/basic_info/gender_value" />" />
				<input type="hidden" name="zh_persons/zh_person[${flag}${index}]/basic_info/card_type_value" value="<x:out select="$zh_person/basic_info/card_type_value" />" />
				<input type="hidden" name="zh_persons/zh_person[${flag}${index}]/basic_info/academician_value" value="<x:out select="$zh_person/basic_info/academician_value" />" />
				<input type="hidden" name="zh_persons/zh_person[${flag}${index}]/basic_info/academician_name" value="<x:out select="$zh_person/basic_info/academician_name" />" />
				<input type="hidden" name="zh_persons/zh_person[${flag}${index}]/basic_info/org_code" value="<x:out select="$zh_person/basic_info/org_code" />" />
				<input type="hidden" name="zh_persons/zh_person[${flag}${index}]/contact/tel_work" value="<x:out select="$zh_person/contact/tel_work" />" />
				<input type="hidden" name="zh_persons/zh_person[${flag}${index}]/contact/fax" value="<x:out select="$zh_person/contact/fax" />" />
				<input type="hidden" name="zh_persons/zh_person[${flag}${index}]/basic_info/position" value="<x:out select="$zh_person/basic_info/position" />" />
				<input type="hidden" name="zh_persons/zh_person[${flag}${index}]/basic_info/degree_value" value="<x:out select="$zh_person/basic_info/degree_value" />" />
				<input type="hidden" name="zh_persons/zh_person[${flag}${index}]/basic_info/degree_name" value="<x:out select="$zh_person/basic_info/degree_name" />" />
				<input type="hidden" name="zh_persons/zh_person[${flag}${index}]/basic_info/post_code" value="<x:out select="$zh_person/basic_info/post_code" />" />
				<input type="hidden" name="zh_persons/zh_person[${flag}${index}]/basic_info/degree_country_value" value="<x:out select="$zh_person/basic_info/degree_country_value" />" />
				<input type="hidden" name="zh_persons/zh_person[${flag}${index}]/basic_info/degree_country_name" value="<x:out select="$zh_person/basic_info/degree_country_name" />" />
				<input type="hidden" name="zh_persons/zh_person[${flag}${index}]/basic_info/degree_college" value="<x:out select="$zh_person/basic_info/degree_college" />" />
				<input type="hidden" name="zh_persons/zh_person[${flag}${index}]/basic_info/degree_year" value="<x:out select="$zh_person/basic_info/degree_year" />" />
				<input type="hidden" name="zh_persons/zh_person[${flag}${index}]/basic_info/prof_title" value="<x:out select="$zh_person/basic_info/prof_title" />" />
				<input type="hidden" name="zh_persons/zh_person[${flag}${index}]/basic_info/prof_title_value" value="<x:out select="$zh_person/basic_info/prof_title_value" />" />
				<input type="hidden" name="zh_persons/zh_person[${flag}${index}]/basic_info/address" value="<x:out select="$zh_person/basic_info/address" />"/>
				<input type="hidden" name="zh_persons/zh_person[${flag}${index}]/basic_info/post_doctor_value" value="<x:out select="$zh_person/basic_info/post_doctor_value" />"/>
				<input type="hidden" name="zh_persons/zh_person[${flag}${index}]/basic_info/post_doctor_name" value="<x:out select="$zh_person/basic_info/post_doctor_name" />"/>
				<input type="hidden" name="zh_persons/zh_person[${flag}${index}]/basic_info/age" value="<x:out select="$zh_person/basic_info/age" />"/>
				<input type="hidden" name="zh_persons/zh_person[${flag}${index}]/basic_info/educate_value" value="<x:out select="$zh_person/basic_info/educate_value" />"/>
				<input type="hidden" name="zh_persons/zh_person[${flag}${index}]/basic_info/card_code" value="<x:out select="$zh_person/basic_info/card_code" />"/>
				<input type="hidden" name="zh_persons/zh_person[${flag}${index}]/basic_info/card_type_name" value="<x:out select="$zh_person/basic_info/card_type_name" />"/>
				<input type="hidden" name="zh_persons/zh_person[${flag}${index}]/contact/email" value="<x:out select="$zh_person/contact/email" />"/>
				<input type="hidden" name="zh_persons/zh_person[${flag}${index}]/contact/mobile" value="<x:out select="$zh_person/contact/mobile" />"/>
				<input type="hidden" name="zh_persons/zh_person[${flag}${index}]/iscomember" value="0"/>

				<input type="hidden" name="zh_persons/zh_person[${flag}${index}]/researches" label="xml"/>
			</td>
			<td align="center">
				<span name="zh_persons/zh_person[${flag}${index}]@seq_no">${index+1}</span>
			</td>
			<td style="word-break: break-all;">
				<span name="zh_persons/zh_person[${flag}${index}]/basic_info/zh_name"><x:out select="$zh_person/basic_info/zh_name" /></span>
				<security:authorize ifAnyGranted="A_DAILU_PROPOSAL">
					<c:if test="${index==0 }"><a href="###" class="Blue" style="text-decoration: none;" onclick="selectFirstRadio(this);editRow('zh_persons','${ctx}/proposal/edit/dialog/psnInfoEdit_qnkjxxxm_2017?parentTab=zh_persons&type=edit&needMeetingInfo=${param.needMeetingInfo}&psnCode=<x:out select="$zh_person/basic_info/psn_code" />&TB_iframe=true&height=440&width=900','编辑项目参与人信息')">[&nbsp;设置&nbsp;]</a></c:if>
				</security:authorize>
			</td>
			<td align="center" style="word-break: break-all;">
				<span name="zh_persons/zh_person[${flag}${index}]/basic_info/birthday"><x:out select="$zh_person/basic_info/birthday" /></span>
			</td>
			<td align="center" style="word-break: break-all;">
						<span name="zh_persons/zh_person[${flag}${index}]/basic_info/gender_name">
							<c:set var="gender_value"><x:out select="$zh_person/basic_info/gender_value" /></c:set>
							<c:set var="gender_name"><x:out select="$zh_person/basic_info/gender_name" /></c:set>
							<c:choose>
								<c:when test="${empty gender_name }">
									<c:if test="${gender_value eq 'M' }">男</c:if>
									<c:if test="${gender_value eq 'F' }">女</c:if>
								</c:when>
								<c:otherwise>${gender_name }</c:otherwise>
							</c:choose>
						</span>
			</td>
			<td style="word-break: break-all;">
				<span name="zh_persons/zh_person[${flag}${index}]/contact/major_work"><x:out select="$zh_person/contact/major_work" /></span>

			</td>
			<td align="center" style="word-break: break-all;">
					<%-- <span name="zh_persons/zh_person[${flag}${index}]/basic_info/position"><x:out select="$zh_person/basic_info/position" /></span>/ --%><span name="zh_persons/zh_person[${flag}${index}]/basic_info/prof_title_name"><x:out select="$zh_person/basic_info/prof_title_name" /></span>
			</td>
			<td align="center" style="word-break: break-all;">
				<span name="zh_persons/zh_person[${flag}${index}]/basic_info/educate_name"><x:out select="$zh_person/basic_info/educate_name" /></span>
			</td>
			<td style="word-break: break-all;">
				<span name="zh_persons/zh_person[${flag}${index}]/basic_info/org_name"><x:out select="$zh_person/basic_info/org_name" /></span>
			</td>
			<td align="left" style="word-break: break-all;">
				<span name="zh_persons/zh_person[${flag}${index}]/contact/built_institute" id="built_institute_[${flag}${index}]"><x:out select="$zh_person/contact/built_institute" /></span>
			</td>
			<td style="word-break: break-all;">
				<span name="zh_persons/zh_person[${flag}${index}]/basic_info/work"><c:choose><c:when test="${index==0}">项目负责人</c:when><c:otherwise><x:out select="$zh_person/basic_info/work" /></c:otherwise></c:choose></span>
			</td>
		</tr>
		<c:set value="${index+1}" var="index" scope="page" />
	</x:forEach>
	</tbody>
</table>

<table id="jbutton1" border="0" cellpadding="0" cellspacing="1">
	<tr>
		<td>
			<input class="button_02" type="button" value="添加" onclick="if(checkTabLimit('zh_persons',99,'项目组主要参与人员最多只能填写99条')){addNewRow('zh_persons','${ctx}/proposal/edit/dialog/psnInfoEdit_dbspkxzx_2020?parentTab=zh_persons&type=add&needMeetingInfo=${param.needMeetingInfo}&TB_iframe=true&height=440&width=900','添加项目组主要参与人员');}try{top.resizeFrame();}catch(e){};">
			&nbsp;<input class="button_02"  id="zh_psnPrev" type="button" value="上移" onclick="movePrev('zh_persons');setSubmitPsn()">
			&nbsp;<input class="button_02"  id="zh_psnNext" type="button" value="下移" onclick="moveNext('zh_persons');setSubmitPsn()">
			&nbsp;<input class="button_02"  id="zh_psnEdit" type="button" value="编辑" onclick="if(checkSubmitPsn('zh_persons'))editRow('zh_persons','${ctx}/proposal/edit/dialog/psnInfoEdit_dbspkxzx_2020?parentTab=zh_persons&type=edit&needMeetingInfo=${param.needMeetingInfo}&TB_iframe=true&height=440&width=900','编辑项目组主要参与人员信息')">
			&nbsp;<input class="button_02"  id="zh_psnDel" type="button" value="删除" onclick="deleteSelectedRow('zh_persons','项目组主要参与人员信息',1,'申请人不能被删除');"></td>
	</tr>
	</tbody>
	<tfoot>
	</tfoot>
</table>
<script type="text/javascript">
	function selectFirstRadio(obj) {
		$(obj).parent('td').parent('tr').find('input[type="radio"]').attr("checked","checked");
		setSubmitPsn();
	}
	function checkSubmitPsn(tableId){
		<security:authorize ifNotGranted="A_DAILU_PROPOSAL">
		var tr=$("#"+tableId+" :radio:checked").parents("tr");
		if(tr.length!=0 && tr.get(0).rowIndex==2){
			scmWarn('如果您需要修改申请人信息， 请保存申请书后点击菜单“系统管理”>“个人信息维护”完成修改');
			return false;
		}
		</security:authorize>

		return true;

	}
	function psnSynchro(){
		$("span[name$='fzr_psnname']").text($("#zh_persons tr:eq(2)").find("span[name$='basic_info/zh_name']").text());
		$("span[name$='fzr_tel']").text($("#zh_persons tr:eq(2)").find("input[name$='contact/tel_work']").val());
		$("span[name$='fzr_mobile']").text($("#zh_persons tr:eq(2)").find("input[name$='contact/mobile']").val());
		$("span[name$='fzr_mail']").text($("#zh_persons tr:eq(2)").find("input[name$='contact/email']").val());
	}
</script>